package com.zhouidea.www.study5.study4;

public class Demo8 {
    public static void main(String[] args) {
        int a =10;
        int b =20;

        a+=b; //a = a+b
        System.out.println("a+=b: " + a);
        a-=b; //a = a-b
        System.out.println("a-=b: " + a);
        System.out.println("------------------------------------------------------------");


        //字符串连接符   +  , String
        System.out.println(a+b+"");  //结果为30(string类型)
        System.out.println(""+a+b);  //结果为1020
    }
}
